package com.zhangpu.ribbon.concumser.Controller;

import com.zhangpu.ribbon.concumser.service.RibbonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zhangpu
 * @License: (C) Copyright hualala.com Corporation Limited.
 * @Contact: zhangpu@hualala.com
 * @Date: 2021.07.19 19:04
 * @Version: 1.0
 * @Description:
 * @ProjectName: spring-cloud-eureka
 */

@RestController
public class RibbonController {

    @Autowired
    private RibbonService ribbonService;

    @GetMapping("/hi")
    public String hi(@RequestParam(value = "name") String name){
        return ribbonService.getSpringCloudInfo(name);
    }
}